import request from '@/utils/request'


export function getUserMenus() {
  return request({
    url: '/system/admin/user/menus',
    method: 'get',
    params: {}
  })
}

export function getRoleResources() {
  return request({
    url: '/system/admin/role/resources',
    method: 'get',
    params: {}
  })
}

export function getRoleMenus() {
  return request({
    url: '/system/admin/role/menus',
    method: 'get'
  })
}

export function deleteRoles(param) {
  return request({
    url: '/system/admin/roles',
    method: 'delete',
    params: param
  })
}

  export function addOrUpdateUser(param) {
    return request({
      url: '/system/admin/role',
      method: 'post',
      params: param
    })

}

